<template>
	<el-dialog  v-model="show" title="设备续费" width="580" align-center>
    <div class="desc">
      支付完成后，您将获得一个迁移码，在目标后台输入此码，即可完成设备迁移。 注意迁移设备时需要将商品全部下架，否则无法迁移。
    </div>
        <div class="list">
            <div class="item">
                <span class="name">
                设备编号：
                </span>
                <span class="value">
                  869825043628429
                </span>
            </div>
            <div class="item">
                <span class="name">
                  迁移费用：
                </span>
                <span class="value fd">
                  ¥  300.00
                </span>
            </div>
        </div>
        <template #footer>
            <div class="dialog-footer">
                <el-button type="primary" @click="submit(ruleFormRef)" color="#0071bb">确定</el-button>
                <el-button @click="close()">取消</el-button>
            </div>
        </template>
    </el-dialog>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import type { FormInstance, FormRules } from 'element-plus'
import { ElMessage } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import { defineProps,defineEmits,toRefs } from 'vue';
const emit = defineEmits(['close','submit']);
const props = defineProps<{ formData:any }>();
// 取消
const close = () => {
    emit('close')
}
// 确定
const submit = () => {
  emit('submit')
}
const show = ref<boolean>(true)
</script>

<style lang="scss" scoped>
.df{
    display: flex;
    align-items: center;
}
.fd{
  font-weight:bold;
}
.desc{
  background:#00ffff;
  padding:20px;
}
.list{
    padding: 0 30px;

    box-sizing: border-box;
    .item{
        height: 40px;
        line-height: 40px;
        color: #4D4D4D;
        font-size: 16px;
        position: relative;
        .name{
            width: 180px;
            display: inline-block;
            text-align: right;
        }
        .value{
          margin-left:10px;
        }
        .tip{
            color:#989898;
            font-size:12px;
        }
    }
}
.dialog-footer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
}
</style>